﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HA.ModFlow.Controls
{
    /// <summary>
    /// 此类仅为winPCMTOutputControlInitializeTimes窗体的表现层，无业务类相对应
    /// </summary>
    public class PCMTInitTimes
    {


        double _initStepSize=1.0;

        public double InitStepSize
        {
            get { return _initStepSize; }
            set
            {
                if (value <= 0)
                {
                    _initStepSize = 1;
                }
                else
                {
                    _initStepSize = value;
                }
            }
        }

        /// <summary>
        /// 
        /// </summary>
        double _bias=1.0;

        public double Bias
        {
            get { return _bias; }
            set {
                if (value <= 0)
                {
                    _bias = 1;
                }
                else
                {
                    _bias = value;
                }
            }
        }

        double _maxStepSize=1.0;

        public double MaxStepSize
        {
            get { return _maxStepSize; }
            set
            {
                if (value <= 0)
                {
                    _maxStepSize = 1;
                }
                else
                {
                    _maxStepSize = value;
                }
            }
        }

        double _maxTime=12;

        public double MaxTime
        {
            get { return _maxTime; }
            set {
                if (value < 0)
                {
                    _maxTime = 1;
                }
                else
                {
                    _maxTime = value;
                }
            }
        }
    }
}
